<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
      xml:lang="en" lang="en">
<h:body>
    <h:form>
        <h:panelGrid columns="1" rendered="#{downloadrightbean.flagForDownload==false}">
            <h:panelGroup>
                <h:outputText value="Выгрузка - "/>
                <h:outputText value="#{downloadrightbean.deltaConfig.configName}"/>
            </h:panelGroup>
            <h:selectOneListbox value="#{downloadrightbean.protocol}">
                <f:selectItem itemValue="ini" itemLabel="ini"/>
                <f:selectItem itemValue="xml" itemLabel="xml"/>
                <f:selectItem itemValue="props" itemLabel="properties"/>
            </h:selectOneListbox>
            <h:panelGroup>
                <h:commandButton value="Выгрузить конфиг" action="#{downloadrightbean.saveFile}"/>
                <h:commandButton value="Отмена" action="#{downloadrightbean.goDefPageAfterDownload}"/>
            </h:panelGroup>
        </h:panelGrid>
        <h:panelGrid columns="1" rendered="#{downloadrightbean.flagForDownload==true}">
            <h:outputLink value="/file/#{downloadrightbean.pathToDownloadFile}"
                          rendered="#{downloadrightbean.flagForDownload==true}">
                <h:outputText value="Скачать #{downloadrightbean.deltaConfig.configName}"/>
            </h:outputLink>
            <h:commandButton value="Вернуться" action="#{downloadrightbean.goDefPageAfterDownload}"/>
        </h:panelGrid>
    </h:form>
</h:body>
</html>